* { 
    box-sizing: border-box; 
}
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    margin: 0; 
    display: flex; 
    height: 100vh; 
    background-color: #f8f9fa; 
    color: #212529; 
}

#sidebar {
    flex: 0 0 30%;
    min-width: 250px;
    background-color: #fff;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    resize: horizontal;
    overflow: hidden; /* Prevent resize handle from being pushed out */
}

#sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f1f3f5;
    flex-shrink: 0;
}
#sidebar-header h2 {
    margin: 0;
    padding: 20px 0;
    font-size: 1.2em;
}

#refresh-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.5s;
}
#refresh-btn:hover {
    background-color: #dee2e6;
}
#refresh-btn.loading {
    transform: rotate(360deg);
    cursor: not-allowed;
}

#issue-list-container {
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 20px;
}

#resizer {
    flex: 0 0 5px;
    background: #e9ecef;
    cursor: col-resize;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}
#resizer:hover {
    background: #ced4da;
}

#main-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 25px;
    word-wrap: break-word;
}

#logs-container {
    background-color: #212529;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
}
#logs-container h3 {
    margin-top: 0;
    border-bottom: 1px solid #495057;
    padding-bottom: 10px;
}
#logs-content {
    height: 300px;
    overflow-y: auto;
    font-size: 0.9em;
    line-height: 1.5;
}
#logs-content .error {
    color: #ff4d4d;
    font-weight: bold;
}


.issue-list { 
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
}

.issue-list-item a { 
    display: block; 
    padding: 15px 20px; 
    text-decoration: none; 
    color: #343a40; 
    border-bottom: 1px solid #e9ecef; 
    transition: background-color 0.2s; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.issue-list-item a:hover { 
    background-color: #e9ecef; 
}
.issue-list-item a.active { 
    background-color: #007bff; 
    color: white; 
}

.priority-group summary {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    margin-top: -1px;
    outline: none;
    transition: background-color 0.2s;
}
.priority-group summary:hover {
    background-color: #e9ecef;
}
.priority-group[open] > summary {
    background-color: #e2e6ea;
}
.priority-group .issue-list a {
    padding-left: 35px;
}

.issue-detail { 
    display: none; 
}
.issue-detail.active { 
    display: block; 
}

h1 { 
    font-size: 1.8em; 
    margin-top: 0; 
    border-bottom: 2px solid #007bff; 
    padding-bottom: 10px; 
}

.meta-info { 
    background-color: #e9ecef; 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    font-size: 0.9em; 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 10px; 
}
.meta-item { 
    display: flex; 
    flex-direction: column; 
}
.meta-item strong { 
    color: #495057; 
    margin-bottom: 3px; 
}

.description-content { 
    background: #fff; 
    padding: 15px; 
    border-radius: 5px; 
    border: 1px solid #dee2e6; 
    white-space: pre-wrap; 
    line-height: 1.6; 
}
.description-content img { 
    max-width: 100%; 
    height: auto; 
    border: 1px solid #dee2e6; 
    border-radius: 5px; 
    margin-top: 10px; 
    vertical-align: middle; 
    cursor: pointer; 
    transition: opacity 0.2s; 
}
.description-content img:hover { 
    opacity: 0.8; 
}

#welcome, .loader { 
    text-align: center; 
    padding-top: 100px; 
    color: #6c757d; 
}

/* Lightbox Styles */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
#lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
#lightbox-close:hover {
    color: #bbb;
} 